/* 修改container的最大宽度为1280 根据设计稿来走 */
@media screen and (min-width: 1280px) {
    .container {
        width: 1280px;
    }
}
/* header */
header {
    padding-left: 0!important;
}
a {
    color: #666;
    text-decoration: none;

}
a:hover {
    text-decoration: none;
}
ul {
    padding: 0;
    list-style: none;
}

.logo {
    background-color: red;
}
.logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
/* 1.进入超小屏幕logo里的图片就隐藏起来 */
/* 2.时先准备一个盒子，平常是隐藏起来的，只有在超小屏幕下才有显示 */
.logo span {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.nav ul {
    background-color: #eee;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ccc;
}
.nav ul li a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: black;
    padding-left: 30px;
    font-size: 16px;
}
/* 当我们进入小屏幕和超小屏幕时候 我们nav里的li浮动起来且宽度为20% */
@media screen and (max-width: 991px) {
    .nav li {
        float: left;
        width: 20%;
        font-size: 14px;
    }
    .nav li a {
        padding-left: 0;
    }
    article {
        margin-top: 10px;
    }
}
body {
    background-color: #f5f5f5;
}
.container {
    background-color: #fff;
}

.nav a:hover {
    background-color: #fff;
    text-decoration: none;
    color: red;
}
.nav a::before {
    vertical-align: middle;
    margin-right: 5px;
}
.news li {
    float: left;
    width: 25%;
    height: 128px;
    padding-right: 10px;
}
.news li a {
    display: block;
    width: 100%;
    height: 100%;
    background-color: purple;
    position: relative;
}
.news li a img {
    width: 100%;
    height: 100%;
}
.news li a p {
    position: absolute;
    bottom: -10px;
    height: 42px;
    width: 100%;
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, .3);
    line-height: 42px;
    padding-left: 15px;
    display: none;
}
.news li a:hover p {
    display: block;
}
.news li:nth-child(1) {
    width: 50%;
    height: 266px;
}
/* 当我们处于超小屏幕下 第一个li宽度为100% 剩下的小li各占50% */
@media screen and (max-width: 768px) {
    .news ul li:nth-child(1) {
        width: 100%!important;
    }
    .news li {
        width: 50%;
    }
    .pic {
        display: none;
    }
    .publish h3 {
        font-size: 18px;
    }

}
.news li{
    margin-bottom: 10px;
}
.publish {
    border-top: 1px solid #ccc;
}
.publish h3 a:hover {
    color: red;
}
.pic {
    margin-top: 10px;
}
.pic img {
    width: 100%;
}
.publish .row {
    padding: 10px 0;
}
.banner img {
    width: 100%;
}
.hot {
    display: block;
    border: 1px solid #ccc;
    margin-top: 20px;
    padding: 0 22px 20px;
}
.hot span {
    border-radius: 0;
    margin-bottom: 20px;
}
.hot p:hover {
    color: green;
}
